package com.ruoyi.project.pickToBC;

import com.ruoyi.project.WxMoudle.Bases.WeixinConfig;
import com.ruoyi.project.alipay.OtherUtils;
import java.util.HashMap;
import java.util.Map;




/*上线后需要获取公钥,手动转化格式 ---网址:https://www.ssleye.com/web/pkcs*/
public class CreateRASPem {
    public static void main(String[] args) throws Exception {
        Map<String, String> paraMap = new HashMap<>();
        //商户号
        paraMap.put("mch_id",WeixinConfig.MACHINEDID);
        //随机字符串
        paraMap.put("nonce_str", OtherUtils.getNonceStr().toString());
        String s = SendWeChat.toWeChat(paraMap, WeixinConfig.RAS_PUBLIC_KEY);
        System.out.println(s);
    }
}


